package business.report.impl;

import business.report.WaterSoilConservationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import report.domain.WaterSoilConservation;
import report.domain.WaterSoilConservationCriteria;
import report.mapper.WaterSoilConservationMapper;

import java.util.List;

/**
 * Created by SunZZ on 2016/6/19.
 */
@Service(value = "wsConservationService")
public class WaterSoilConservationServiceImpl implements WaterSoilConservationService{
    @Autowired
    WaterSoilConservationMapper waterSoilConservationMapper;

    @Override
    public List<WaterSoilConservation> getWaterSoilConservation() {
        WaterSoilConservationCriteria criteria = new WaterSoilConservationCriteria();
        criteria.createCriteria().getAllCriteria();
        return waterSoilConservationMapper.selectByExample(criteria);
    }
}
